package zisu.netty.practice.netty.my;

import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelFuture;
import org.springframework.boot.autoconfigure.web.ServerProperties;

import java.nio.charset.StandardCharsets;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2022/1/12 15:28
 */
public class ClientMain {
    public static void main(String[] args) {
        ChannelFuture connection = NettyClient.INSTANCE.getConnection();
        connection.channel().writeAndFlush(Unpooled.wrappedBuffer("777".getBytes(StandardCharsets.UTF_8)));

    }
}
